package com.shu.rpc.rpc2.client;

import com.shu.rpc.rpc2.common.service.ProductService;
import lombok.extern.slf4j.Slf4j;

/**
 * @author ssm
 * @version V1.0
 * @description:
 * @date 2020/6/12 9:54
 */
@Slf4j
public class ClientDemo {

    /**
     * 客户端远程调用
     *
     * @param args
     */
    public static void main(String[] args) {
        // 调用服务 - todo:生成动态代理的实现
        ProductService productService = (ProductService) Stubs.getStub(ProductService.class);
        log.info("调用成功:{}", productService.getBeanByKey(2));
    }
}
